// 新增 修改 删除方法封装
export function save (key, value) {
  if (!value) {
    console.log('传值')
    return
  }
  window.localStorage.setItem(key, value)
}

export function get (key) {
  // return window.localStorage.getItem(key)
  return window.localStorage.getItem(key)
}

export function del (key) {
  window.localStorage.setItem(key, null)
  // window.localStorage.removeItem(key)
  // window.localStorage.clear() // 清空所有基本不用
}
